package com.lh0811.forge.pserv.uacs.api.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.apache.commons.compress.utils.Lists;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 开发平台-平台用户表
 *
 * @author
 * @email
 * @date 2024-05-24 15:39:43
 */
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
public class CurrentUacsUserInfoVo implements Serializable {
    @Schema(description = "主键")
    private Long id;
    @Schema(description = "平台用户编号")
    private String plateUserNo;
    @Schema(description = "昵称")
    private String nickName;
    @Schema(description = "真实姓名")
    private String realName;
    @Schema(description = "证件号")
    private String idCardNo;
    @Schema(description = "手机号")
    private String phone;
    @Schema(description = "生日")
    private String birthday;
    @Schema(description = "性别： 00-保密 01-男 02-女")
    private String gender;
    @Schema(description = "头像")
    private String avatarUrl;
    @Schema(description = "是否实名认证")
    private Boolean realNameFlag;
    @Schema(description = "最后一次登录时间")
    private Date lastLoginTime;
    @Schema(description = "是否可用")
    private Boolean activeFlag;
    @Schema(description = "是否注销")
    private Boolean writeOffFlag;
    @Schema(description = "备注")
    private String notes;

    @Schema(description = "租户Id")
    private Long currTenantId;

    @Schema(description = "租户名称")
    private String currTenantName;

    @Schema(description = "租户列表")
    private List<TenantInfo> tenantInfoList = Lists.newArrayList();


    @Getter
    @Setter
    @AllArgsConstructor
    @NoArgsConstructor
    public static class TenantInfo implements Serializable {
        @Schema(description = "租户id")
        private Long tenantId;
        @Schema(description = "租户名称")
        private String tenantName;
    }
}
